<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Content extends Model
{
    //

    protected $guarded = [];

    protected $casts = [
        'extended_data' => 'array'
    ];

    public function category()
    {
        return $this->hasOne(Category::class, 'id', 'c_id');
    }
}
